import request from '@/utils/request'

// 查询商品图片列表
export function listCommimages(query) {
  return request({
    url: '/campus/commimages/list',
    method: 'get',
    params: query
  })
}

// 查询商品图片详细
export function getCommimages(imgId) {
  return request({
    url: '/campus/commimages/' + imgId,
    method: 'get'
  })
}

// 新增商品图片
export function addCommimages(data) {
  return request({
    url: '/campus/commimages',
    method: 'post',
    data: data
  })
}

// 修改商品图片
export function updateCommimages(data) {
  return request({
    url: '/campus/commimages',
    method: 'put',
    data: data
  })
}

// 删除商品图片
export function delCommimages(imgId) {
  return request({
    url: '/campus/commimages/' + imgId,
    method: 'delete'
  })
}

// 导出商品图片
export function exportCommimages(query) {
  return request({
    url: '/campus/commimages/export',
    method: 'get',
    params: query
  })
}